<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/WEB-INF/tpl/page.xhtml">
	<ui:define name="page_title">#{msgs.titleSearch}</ui:define>
	<ui:define name="page_body">
		<h:form>
			<h:outputFormat value="#{msgs.yourQuery}" escape="false">
				<f:param value="#{searchQueryBean.userQuery}" />
			</h:outputFormat>
	
			<h:commandLink action="index" value="#{msgs.linkReturnIndex}" />
		</h:form>
	    <h:dataTable rendered="#{searchQueryBean.hasResults}"
	                 value="#{searchQueryBean.results}" var="result">
	        <h:column>
	            <f:facet name="header">#{msgs.labelSize}</f:facet>
	            #{result.size}
	        </h:column>
	        <h:column>
	            <f:facet name="header">#{msgs.labelDate}</f:facet>
	            <h:outputText value="#{result.date}">
	                <f:convertDateTime dateStyle="short" type="both" />
	            </h:outputText>
	        </h:column>
	        <h:column>
	            <f:facet name="header">#{msgs.labelFlags}</f:facet>
	            #{result.flags}
	        </h:column>
	        <h:column>
	            <f:facet name="header">#{msgs.labelFilename}</f:facet>
	            #{result.filename}
	        </h:column>
	    </h:dataTable>
	</ui:define>
</ui:composition>
